From: Florian Müllner Date: Fri, 13 Mar 2020 14:37:42 +0000 (+0100) Subject: dateMenu: Don't ellipsize world clock time/tz X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~751^2^2~132 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b80115dc6e368e88629d0ced75cd5cae28c6d9bc;p=gnome-shell.git dateMenu: Don't ellipsize world clock time/tz If we need to ellipsize, it should be the location name, not the time or timezone offset. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1090 --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index c6c1b5bb5..cdbe0ac41 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -189,6 +189,9 @@ class WorldClocksSection extends St.Button { x_align: Clutter.ActorAlign.END, y_align: Clutter.ActorAlign.CENTER }); + time.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; + tz.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; + if (this._grid.text_direction == Clutter.TextDirection.RTL) { layout.attach(tz, 0, i + 1, 1, 1); layout.attach(time, 1, i + 1, 1, 1);